pub mod prelude;

// use image::{DynamicImage, GenericImageView, ImageResult};
// use reqwest::blocking;
// use std::io::Read;

// pub fn download_image<T>(url: T) -> Result<Vec<u8>, reqwest::Error>
// where
//     T: AsRef<str> + reqwest::IntoUrl,
// {
//     let response = reqwest::blocking::get(url)?;

//     // 获取响应体
//     let bytes = response.bytes()?.to_vec();
//     Ok(bytes.to_vec())
// }
